package com.param.impl;

import java.math.BigDecimal;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.param.concat.IChangeRecordParam;

/**
 * 变更类型参数
 */
public class ChangeRecordParam implements IChangeRecordParam {

	/** 变更类型 0 出账 1 入账 */
	@NotNull(message = "变更类型不能为null")
	@Min(value = 0, message = "变更类型最小值为0")
	@Max(value = 1, message = "变更类型最大值为 1")
	private Integer changeType;

	/** 余额 */
	@NotNull
	private BigDecimal money;

	/** 变更原因 */
	@NotNull
	private String reason;

	@NotNull
	@Min(value = 1, message = "用户最小值为1")
	private Integer userId;


	public void setChangeType(Integer changeType) {
		this.changeType = changeType;
	}

	public Integer getChangeType() {
		return changeType;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getReason() {
		return reason;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

}
